    // 获取需要使用到的元素
    const update = document.querySelectorAll('.update')
    const add = document.querySelector('.add')
    // var container = document.getElementsByClassName("container")[0];
    const mask = document.getElementsByClassName("mask")[0];
    // var modal = document.getElementsByClassName("modal")[0];
    const updates = document.querySelector('.updates')
    const adds = document.querySelector('.adds')
    const closes = document.getElementsByClassName("close");
    add.onclick = addshow;
    update[0].onclick = updateshow;
    for(let i=0;i<update.length;i++) update[i].addEventListener('click',updateshow)
    closes[0].onclick = close;
    closes[1].onclick = close;
    closes[2].onclick = close;
    closes[3].onclick = close;
    function updateshow(){
        mask.style.display = "block";
        updates.style.display = "block";
    }
    function close(){
        mask.style.display = "none";
        updates.style.display = "none";
        adds.style.display = "none";
    }
    function addshow(){
        mask.style.display = "block";
        adds.style.display = "block";
    }
